package com.qf.air.client;

import com.qf.air.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient("AIR-SEARCH")
public interface AirSearchClient {


    /**
     * 查询ES中存储的空气质量信息
     */
    @PostMapping("/search/list")
    public ResultVO list(@RequestBody Map map);


    /**
     * 添加空气质量信息到ES
     */
    @PostMapping("/search/add")
    public void add(@RequestBody Map map);

    @PostMapping("/search/echarts")
    public ResultVO findDistrictAirQualityCount();
}
